# coding=utf-8


# 判断是否是数字
def not_number(*num):
    for n in num:
        if not isinstance(n, int) and not isinstance(n, float):
            return True
    return False


# 求和函数
def summation(num1, num2):
    if not_number(num1, num2):
        return 0
    else:
        return num1 + num2


print(summation(12, 12))
